﻿namespace YiShop.System.Controllers
{
    [Route("system/notice")]
    public class SysNoticeController : ControllerBase
    {
        private readonly SysNoticeService _sysNoticeService;
        public SysNoticeController(SysNoticeService sysNoticeService)
        {
            _sysNoticeService = sysNoticeService;
        }
        /// <summary>
        /// 查询通知公告表列表
        /// </summary>
        [HttpGet("list")]
        public async Task<SqlSugarPagedList<SysNoticeDto>> GetSysNoticeList([FromQuery] SysNoticeDto dto)
        {
            return await _sysNoticeService.GetDtoPagedListAsync(dto);
        }
    }
}